"""
利用while循环实现 1-100的累加

"""
sum1 = 0
num1 = 1
while num1 <= 100:
    sum1 += num1
    num1 += 1
print("最终结果：",sum1)


"""
1-100 之间的偶数进行累加 2+4+6+8+10+…………+100
"""
sum2 = 0
num2 = 2
while num2 <= 100:
    sum2 += num2
    num2 += 2
print("最终结果：",sum2)